package com.hotel.room.service.feign;

import com.hotel.common.param.PayAdd;
import com.hotel.common.vo.R;
import com.hotel.room.config.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * --- 天道酬勤 ---
 *
 * @author TRC
 * @date 2024/6/18
 * @desc
 */
@FeignClient(value = "ht-wallet-server", configuration = OpenFeignConfig.class)
public interface UserWalletFeign {

    @RequestMapping("/user/wallet/create")
    R create(@RequestBody PayAdd payAdd);

    /**
     * 获取钱包余额
     * @return
     */
    @RequestMapping("/user/wallet/my")
    R ShowMyBalance();

    /**
     * 充值记录
     */
    @RequestMapping("/user/wallet/rechargeLogs")
    R findRechargeLogs();

}
